Current Location: Home> Function Categories> timezone_location_get

timezone_location_get

Alias ​​for DateTimeZone::getLocation - Returns the location information related to the time zone
Name:timezone_location_get
Category:Date and time
Programming Language:php
One-line Description:Returns the location information of the specified time zone.

Definition and usage

timezone_location_get() returns the location information of the given time zone.

Example

Returns the location information of the specified time zone:

 <?php
$tz = timezone_open ( "America/New_York" ) ;
echo timezone_location_get ( $tz ) ;
?>

Try it yourself

grammar

 timezone_location_get ( object ) ;
parameter describe
object Required. Specifies the DateTimeZone object returned by timezone_open() .
Similar Functions